package gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import java.awt.CardLayout;

public class Mainframe extends JFrame {
	
	public static final String HELLO = "name_7054104923493";
	public static final String MENU = "name_9256639929713";
	public static final String RESULT = "name_10209069234620";

	private JPanel contentPane;
	private Hello hello;
	private Menu menu;
	private Result result;
	
	private CardLayout c;


	public Mainframe() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 270, 480);
		contentPane = new JPanel();
		setResizable(false);
		setContentPane(contentPane);
		contentPane.setLayout(new CardLayout(0, 0));
		
		hello = new Hello();
		contentPane.add(hello, "name_7054104923493");
		
		menu = new Menu();
		contentPane.add(menu, "name_9256639929713");
		
		result = new Result();
		contentPane.add(result, "name_10209069234620");
		
		c = (CardLayout) getContentPane().getLayout();
	}
	
	public Hello getHello() {
		return hello;
	}
	public Menu getMenu() {
		return menu;
	}
	public Result getResult() {
		return result;
	}
	public void show(String card) {
		c.show(this.getContentPane(), card);
	}
}
